<% layout('layout') -%><!--加载全局布局文件-->
<% block('head').append('<link rel="stylesheet" href="'+CDN+'images/activity/sginday/calendar/css/style.css">') %>
<!--NgC div start--->
<div id="singday" ng-controller="GiveAction" ng-cloak class="ng-cloak">
    <div class="topdiv">
        <div class="am-cf">
            <div class="am-fl am-padding-sm">当月签到<span ng-bind="MonthSignDay"></span>天，累计签到<span ng-bind="AllSignDay"></span>天</div>
            <div class="am-fr am-padding-sm"><a href="#" data-am-modal="{target: '#my-popup'}" style="color: #ffffff">签到规则</a></div>
        </div>
        <div class="sginbtndiv">
            <img src="../images/activity/sginday/9.png" ng-click="signBtn()" ng-if="SignState==0" class="singbtn animated bounceIn"/><br>
            <span ng-if="SignState==1">今日已签到</span>
        </div>
    </div>

    <!---日历层 开始-->
    <div class="calendar-container am-margin-sm">
        <div class="calendar">
            <header>
                <h2 class="month"></h2>
                <a class="btn-prev   am-icon-angle-left" href="#"></a>
                <a class="btn-next   am-danger am-icon-angle-right" href="#"></a>
            </header>
            <table class="">
                <thead class="event-days">
                <tr></tr>
                </thead>
                <tbody class="event-calendar">
                <tr class="1"></tr>
                <tr class="2"></tr>
                <tr class="3"></tr>
                <tr class="4"></tr>
                <tr class="5"></tr>
                </tbody>
            </table>
        </div>
    </div>
    <!---日历层 结束-->
    <!--月度礼品领取 开始-->
    <div class="giftdiv am-margin-sm">
        <img src="../images/activity/sginday/1.png" class="giftdivtitle am-margin-sm"/>
        <div class="am-g am-margin-bottom-sm">
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(3)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D3.D3Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D3.D3Value==1">已领取</span>
                <img src="../images/activity/sginday/3.png" class="giftdivico"  ng-class="{'gray':GiftArray.D3.D3Value==-1}"/><br/>
                <div class="am-text-danger am-text-xs">连续签到3天</div>
                <div class="am-text-huise am-text-xs">得2元优惠券</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(7)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D7.D7Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D7.D7Value==1">已领取</span>
                <img src="../images/activity/sginday/a.png" class="giftdivico " ng-class="{'gray':GiftArray.D7.D7Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到7天</div>
                <div class="am-text-huise am-text-xs">得5元优惠劵</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(15)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D15.D15Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D15.D15Value==1">已领取</span>
                <img src="../images/activity/sginday/4.png" class="giftdivico " ng-class="{'gray':GiftArray.D15.D15Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到15天</div>
                <div class="am-text-huise am-text-xs">得价值15元水果</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(23)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D23.D23Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D23.D23Value==1">已领取</span>
                <img src="../images/activity/sginday/b.png" class="giftdivico " ng-class="{'gray':GiftArray.D23.D23Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到23天</div>
                <div class="am-text-huise am-text-xs">得8元优惠劵</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(30)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D30.D30Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D30.D30Value==1">已领取</span>
                <img src="../images/activity/sginday/5.png" class="giftdivico " ng-class="{'gray':GiftArray.D30.D30Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到1个月</div>
                <div class="am-text-huise am-text-xs">得10元优惠券</div>
            </div>
            <div class="am-u-sm-4 am-padding-0">

            </div>
        </div>
    </div>
    <!--月度礼品领取 结束-->
    <!--累计礼品领取 开始-->
    <div class="giftdiv am-margin-sm">
        <img src="../images/activity/sginday/2.png" class="giftdivtitle am-margin-sm"/>
        <div class="am-g am-margin-bottom-sm">
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(90)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D90.D90Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D90.D90Value==1">已领取</span>
                <img src="../images/activity/sginday/6.png" class="giftdivico " ng-class="{'gray':GiftArray.D90.D90Value==-1}"/><br/>
                <div class="am-text-danger am-text-xs">连续签到90天</div>
                <div class="am-text-huise am-text-xs">得价值100元水果</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(180)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D180.D180Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D180.D180Value==1">已领取</span>
                <img src="../images/activity/sginday/7.png" class="giftdivico " ng-class="{'gray':GiftArray.D180.D180Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到180天</div>
                <div class="am-text-huise am-text-xs">得500元现金</div>
            </div>
            <div class="am-u-sm-4 am-padding-0" ng-click="giveBtn(365)">
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D365.D365Value==0">领取我</span>
                <span class="biaohuitip am-badge am-badge-warning am-round am-text-sm" ng-show="GiftArray.D365.D365Value==1">已领取</span>
                <img src="../images/activity/sginday/8.png" class="giftdivico " ng-class="{'gray':GiftArray.D365.D365Value==-1}"/>
                <div class="am-text-danger am-text-xs">连续签到365天</div>
                <div class="am-text-huise am-text-xs">得2000元现金</div>
            </div>
        </div>
    </div>
    <!--累计礼品领取 结束-->

    <!---ALERT模态框-->
    <div class="am-modal am-modal-alert modaldiv" tabindex="-1" id="my-alert">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">{{AlertTitle}}</div>
            <div class="am-modal-bd">
                {{AlertContent}}
            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn  am-round" data-am-modal-cancel>确 定</span>
            </div>
        </div>
    </div>

    <!---ALERT模态框-->
    <div class="am-modal am-modal-confirm modaldiv" tabindex="-1" id="my-confirm">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">{{ConfirmTitle}}</div>
            <div class="am-modal-bd">
                {{ConfirmContent}}
            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn" data-am-modal-cancel>取消</span>
                <span class="am-modal-btn" data-am-modal-confirm>领取</span>
            </div>
        </div>
    </div>

    <!----签到活动规则---->
    <div class="am-popup" id="my-popup">
        <div class="am-popup-inner">
            <div class="am-popup-hd">
                <h4 class="am-popup-title">活动规则</h4>
      <span data-am-modal-close
            class="am-close">&times;</span>
            </div>
            <div class="am-popup-bd">
                1、每个签到奖品每月限领1次<br/>
                2、若断签，则之前所有的签到天数作废，重新累积连续签到天数<br/>
                3、所有签到奖品只限本人领取，不可转让<br/>
                4、现金券领取后会直接放入您的账号<br/>
                5、现金券的使用有效期为7天（从兑换成功之日开始计算），过期作废<br/>
                6、实物奖领取后需在当天24:00前进行兑换，逾期作废<br/>
                7、实物奖将在兑换成功后的5个工作日内进行派送<br/>
                8、现金奖将在领取后的5个工作日内充值到本人的会员卡余额中<br/>
                9、本活动仅限货到付款地区<br/>
                10、果然100拥有对本活动的最终解释权。
            </div>
        </div>
    </div>
</div><!--NgC div end--->
<!---启用底部navbar-->
<!--<% include ../navbar.ejs %>-->
<!--如果本页面有额外的js文件/代码需要加入到head中 使用如下代码-->

<% block('footer').append('<script src="'+CDN+'images/activity/sginday/calendar/js/simplecalendar.js"></script>') %>
<% block('footer').append('<script src="'+CDN+'script/signday.js"></script>') %>
<% block('footer').append('<script src="'+CDN+'script/signdayag.js"></script>') %>

